package com.nakano.service;

import com.nakano.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 我的juejin：Nakano_May
 * @since 2023-03-03
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 获取用户名
     * @param username
     * @return
     */
    SysUser getByUserName(String username);

    /**
     * 获取用户权限信息
     * @param userId
     * @return
     */
    String getUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);

    void clearUserAuthorityInfoByMenuId(Long menuId);
}
